public class Sanjiaoxing {
    public static void main(String[] args) {
        int ys =add(5,5);
        System.out.println("三角形的面积为"+ ys);
        double ji =add(3.6,3.6);
        System.out.println("三角形的面积为"+ ji);
    }

    public static int add(int x,int y) {
        return x*y/2;
    }
    public static double add(double x,double y) {
        return x*y/2;
    }
}
